@import url("/styles/common.css");
section.explorer .selectable.selected {
  -webkit-box-shadow: 0 0.05em 0.2em 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.05em 0.2em 0 rgba(0, 0, 0, 0.2);
  background: #7fa0eb;
}
section.explorer .selection {
  background: rgba(0, 0, 255, 0.1);
  border-radius: 0.1em;
  border: 0.05em solid rgba(0, 0, 255, 0.2);
}
section.explorer div[for=control] {
  display: flex;
  justify-content: flex-start;
  margin: 15px;
  flex-wrap: wrap;
  user-select: none;
}
section.explorer div[for=control] form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
section.explorer div[for=control] form * {
  margin: 2px;
}
section.explorer div[for=control] > button {
  margin: 2px;
}
section.explorer div[for=show-lists] div[role=lists] {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
section.explorer div[for=show-lists] div[role=lists] .list-child {
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 2px #bbb;
  align-items: center;
  max-width: 160px;
}
section.explorer div[for=show-lists] div[role=lists] .list-child a {
  text-decoration: none;
}
section.explorer div[for=show-lists] div[role=lists] .list-child a i {
  font-size: 5em;
  color: #8cd2f0;
}
section.explorer div[for=show-lists] div[role=lists] .list-child span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin: 0px 3px 3px 3px;
  color: #575757;
  font-size: 0.8em;
}

@media only screen and (max-width: 600px) {
  section.explorer div[for=control] {
    margin-top: -20px;
  }
  section.explorer div[for=show-lists] div[role=lists] .list-child {
    margin: 10px 10px;
  }
}
@media only screen and (min-width: 601px) {
  section.explorer div[for=control] {
    margin-top: -20px;
  }
  section.explorer div[for=show-lists] div[role=lists] .list-child {
    margin: 10px 15px;
  }
}
body {
  display: grid;
  grid-template: 50px 1fr/1fr;
}

main {
  display: grid;
  grid-template: 1fr/200px 1fr;
  margin-top: 30px;
}

@media only screen and (max-width: 600px) {
  main {
    display: grid;
    grid-template: 120px 1fr/1fr;
    margin-top: 5px;
  }

  aside[role=left-nav] {
    padding: 5px 17px;
  }

  .book {
    margin: 10px 10px;
  }
}
@media only screen and (min-width: 601px) {
  main {
    display: grid;
    grid-template: 1fr/200px 1fr;
    margin-top: 30px;
  }

  aside[role=left-nav] {
    padding: 10px 25px;
  }

  .book {
    margin: 10px 15px;
  }
}
div[role=book-shelf] {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
}

aside[role=left-nav] {
  user-select: none;
}
aside[role=left-nav] > hr {
  margin: 30px 0px 30px 5px;
  padding-left: 5px;
}

div[role=aside-menu] {
  display: flex;
  flex-direction: column;
}
div[role=aside-menu] > span {
  display: flex;
  align-items: center;
  margin: 2px 0px;
  font-size: 1.1em;
  color: #575757;
  padding-left: 5px;
  line-height: 2;
}
div[role=aside-menu] > span:first-child {
  color: #6e6e6e;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 0px;
}
div[role=aside-menu] > span i {
  margin-right: 7px;
  font-size: 1.1em;
}
div[role=aside-menu] > span a {
  color: #575757;
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: center;
}
div[role=aside-menu] > span.active {
  background-color: gainsboro;
}
div[role=aside-menu] > span:not(:first-child):hover {
  background-color: gainsboro;
}

.book {
  width: 160px;
  height: 245px;
  box-shadow: 0 0 2px #bbb;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
}
.book a img {
  width: 160px;
  height: 200px;
}
.book > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin: 5px 3px 0px 3px;
}
.book > span:first-of-type {
  color: #575757;
  font-size: 0.8em;
}
.book > span:last-child {
  color: #6e6e6e;
  font-size: 0.7em;
}

footer {
  display: flex;
  justify-content: center;
  line-height: 2em;
  align-items: center;
}
footer footer a {
  color: #575757;
  text-decoration: none;
}
